
var data = []; 
for(var i = 0; i <12; i++){
    data[i] = {};
    data[i].img =  $(".goods-center>ul>div>li>.goods-img >img").eq(i).attr("src");
    data[i].goods=  $(".goods-center>ul>div>li>.goods-fonts>.goods").eq(i).text();
    data[i].sale =  $(".goods-center>ul>div>li>.goods-fonts>.sale").eq(i).text();
    data[i].price =  $(".goods-center>ul>div>li>.goods-fonts>.txts>.txt-left>.price").eq(i).text();
    data[i].jifen =  $(".goods-center>ul>div>li>.goods-fonts>.txts>.txt-left>.jifen").eq(i).text();
    data[i].number =  $(".goods-center>ul>div>li>.goods-fonts>.txts>.txt-left>.jifen>span>i").eq(i).text();
    data[i].a =  $(".goods-center>ul>div>li>.goods-fonts>.txts>.txt-right>a").eq(i).text();

}
console.log(JSON.stringify(data));